import { userModel } from "../model/userModel";
import request from "../utils/request"

export default {
    async checkUser(username: string , password: string) {
        let user: userModel = {};
        user.username = username;
        user.password = password;
        return request.post('/user/checkUser' , user);
    },
    async insert(user: userModel) {
        return request.post('/user/insert' , user);
    }
}